package com.rao.gmall.user.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.rao.gmall.model.user.UserAddress;
import com.rao.gmall.model.user.UserInfo;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;

/**
 * @author nzmxfan
 * @create 2021-08-16-20:18
 */
public interface UserService extends IService<UserInfo> {

    UserInfo login(UserInfo info);

    Map<String, Object> handleLoginSuccess(UserInfo userInfo, HttpServletRequest request);

    void logout(String token);

    List<UserAddress> getUserAddresses(String userId);

}
